import Vue from 'vue'
import store from './store/index'
import App from './App'
import uView from "uview-ui";
Vue.use(uView);

const fundebug = require('./static/fundebug.1.7.4.min.js');
fundebug.init(
{
  apikey : 'db5ca18342c11507ab1f6d04cfb04daafe229b60ae17645fd6de7ae689923f1c'
})

import {
  showToast
} from './utils/globalMethod'
Vue.prototype.$debounce = (fn, wait = 3000) => {
  let timber = null;
  return function() {
    const now = !timber
    timber && clearTimeout(timber)
    timber = setTimeout(() => {
      timber = null
    }, wait)
    if (now) {
      fn()
    }
  }
}
Vue.prototype.$showToast = showToast;
Vue.config.productionTip = false
Vue.prototype.$store = store
App.mpType = 'app'

import "./components/gaoyia-parse/parse.css";

const app = new Vue({
  store,
  ...App
})
app.$mount()
